//
//  songModel.swift
//  ShareMusic
//
//  Created by 胡岩 on 16/5/4.
//  Copyright © 2016年 胡岩. All rights reserved.
//

import UIKit

class songModel: NSObject {
    var song_id:NSNumber?
    var song_name:String?
    var singer_id:NSNumber?
    var singer_name:String?
    var album_id:NSNumber?
    var album_name:String?
    var audition_list:NSArray?
    var songDetails:songDetailsModel?
    var type:Int = 1 //download
    
    init(dic:[String:AnyObject]?) {
        super.init()
        self.setValuesForKeysWithDictionary(dic!)
        if audition_list?.count > 0 {
            songDetails = songDetailsModel.init(dic: audition_list![0] as? [String : AnyObject])
        }
    }
    override init() {
        super.init()
        songDetails = songDetailsModel.init()
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
        
    }
}
